Create a new Freight Invoice for a Shipment. If no charge_line_items
are provided, items are automatically generated from the charge items on the Shipment
Successfully created a Freight Invoice
object or null Entity from which payment should be requested | |
booking_party_tenant_id | string The id of the booking Party of invoice, also known as customer in Shipwell |
Array of objects | |
created_at | string or null <date-time> |
currency | string (Currency) = 3 characters 3-character ISO-4217 currency code |
object or null Custom data. See the custom data guide for more information. | |
Array of objects documents uploaded as part of invoice | |
due_date | string <date> Date by which the payment is due |
external_id | string or null Reference number for the invoice in external systems |
generated_by | string (GeneratedBy) Enum: "SERVICE_PROVIDER" "BOOKING_PARTY" |
id | string or null |
invoice_date | string <date> Date that invoice was created |
invoice_number | string Reference number for the invoice |
invoice_source | string Default: "CARRIER_GENERATED" |
object | |
notes | string Any notes on the invoice |
object | |
Array of objects | |
object or null Entity to which payment should be made | |
service_provider_id | string The id of the service provider company in Shipwell. Typically company of entity requesting invoice. |
service_provider_name | string Name of Service Provider at time of Invoice Creation |
status | string (Status) Default: "RECEIVED" Current status of the invoice |
Array of objects | |
Array of objects (Sub Statuses) Sub statuses of the invoice | |
object Total value of the invoice when it was initially created | |
object | |
updated_at | string or null <date-time> |
Default error response
{- "bill_to": {
- "contact_email": "user@example.com",
- "contact_phone": "string",
- "contact_phone_number": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "entity_type": "INDIVIDUAL",
- "id": "string",
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "locality": "string",
- "name": "string",
- "postal_code": "string",
- "region": "str",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "booking_party_tenant_id": "string",
- "charge_line_items": [
- {
- "category": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "custom_data": { },
- "description": "string",
- "id": "string",
- "quantity": "string",
- "unit_amount": {
- "currency": "USD",
- "value": "string"
}, - "updated_at": "2019-08-24T14:15:22Z"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "currency": "USD",
- "custom_data": {
- "property1": null,
- "property2": null
}, - "documents": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "document_type": "string",
- "id": "string",
- "record_of_truth": true,
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "due_date": "2019-08-24",
- "external_id": "string",
- "generated_by": "SERVICE_PROVIDER",
- "id": "string",
- "invoice_date": "2019-08-24",
- "invoice_number": "string",
- "invoice_source": "CARRIER_GENERATED",
- "invoiceable": {
- "id": "string",
- "reference_number": "string",
- "references": [
- {
- "qualifier": "PO_NUMBER",
- "value": "string"
}
], - "total_amount": {
- "currency": "USD",
- "value": "string"
}, - "type": "V2_SHIPMENT"
}, - "notes": "string",
- "processed_total": {
- "currency": "USD",
- "value": "string"
}, - "product_line_items": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "custom_data": { },
- "description": "string",
- "id": "string",
- "packaging": "BAG",
- "quantity": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "weight": {
- "unit": "LB",
- "value": "string"
}
}
], - "remit_to": {
- "contact_email": "user@example.com",
- "contact_phone": "string",
- "contact_phone_number": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "entity_type": "INDIVIDUAL",
- "id": "string",
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "locality": "string",
- "name": "string",
- "postal_code": "string",
- "region": "str",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "service_provider_id": "string",
- "service_provider_name": "string",
- "status": "RECEIVED",
- "stops": [
- {
- "company_name": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "id": "string",
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "locality": "string",
- "postal_code": "string",
- "reasons": "LOAD",
- "region": "str",
- "sequence_number": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "sub_statuses": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "sub_status": "NOT_DELIVERED",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "total_amount": {
- "currency": "USD",
- "value": "string"
}, - "total_passed": {
- "currency": "USD",
- "value": "string"
}, - "updated_at": "2019-08-24T14:15:22Z"
}